package com.example.administrator.pms.bean;

public class Picture {

    public String url;//图片存储地址
    public String name;
    public String label;
    public static final String DEFAULT_URL = null;//默认地址
    public static final String DEFAULT_NAME = "0.jpg";//默认图片名字
    public static final String DEFAULT_LABEL = "default";//默认标签

    public Picture(){
        this.url = DEFAULT_URL;
        this.name = DEFAULT_NAME;
        this.label = DEFAULT_LABEL;
    }

    public Picture(String url) {
        this.url = url;
        this.name = DEFAULT_NAME;
        this.label = DEFAULT_LABEL;
    }

    public Picture(String name,String url){
        this.url = url;
        this.name = name;
        this.label = DEFAULT_LABEL;
    }

    public Picture(String url,String picid,String name,String label){
        this.url = url;
        this.name = name;
        this.label = label;
    }

    public void setUrl(String url){
        this.url = url;
    }

    public String getUrl(){
        return url;
    }

    public void setName(String name){
        this.name = name;
    }

    public void setLabel(String label){
        this.label = label;
    }

    public String getName(){
        return name;
    }

    public String getLabel() {
        return label;
    }
}
